package com.teensoft.core.user;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class User implements Serializable {

	private static final long serialVersionUID = -5963454952825539248L;

	private String id = "";
	private String email = "";
	private Date create_date = null;
	private Date modify_date = null;
	private String password = "";
	private Set<UserContect> user_contact = new HashSet<UserContect>();
	private Set<Group> group = new HashSet<Group>();
	private Set<Organization> organization = new HashSet<Organization>();
	private Set<Permission> permission = new HashSet<Permission>();
	private Set<Role> role = new HashSet<Role>();
	private String active = "";
	private String last_login_ip = "";
	private Date password_modify_date = null;
	private Date last_login_date = null;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}

	public Date getModify_date() {
		return modify_date;
	}

	public void setModify_date(Date modify_date) {
		this.modify_date = modify_date;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getActive() {
		return active;
	}

	public void setActive(String active) {
		this.active = active;
	}

	public String getLast_login_ip() {
		return last_login_ip;
	}

	public void setLast_login_ip(String last_login_ip) {
		this.last_login_ip = last_login_ip;
	}

	public Date getPassword_modify_date() {
		return password_modify_date;
	}

	public void setPassword_modify_date(Date password_modify_date) {
		this.password_modify_date = password_modify_date;
	}

	public Date getLast_login_date() {
		return last_login_date;
	}

	public void setLast_login_date(Date last_login_date) {
		this.last_login_date = last_login_date;
	}

	public Set<UserContect> getUser_contact() {
		return user_contact;
	}

	public void setUser_contact(Set<UserContect> user_contact) {
		this.user_contact = user_contact;
	}

	public Set<Group> getGroup() {
		return group;
	}

	public void setGroup(Set<Group> group) {
		this.group = group;
	}

	public Set<Organization> getOrganization() {
		return organization;
	}

	public void setOrganization(Set<Organization> organization) {
		this.organization = organization;
	}

	public Set<Role> getRole() {
		return role;
	}

	public void setRole(Set<Role> role) {
		this.role = role;
	}

	public Set<Permission> getPermission() {
		return permission;
	}

	public void setPermission(Set<Permission> permission) {
		this.permission = permission;
	}

}
